package nl.jaapniek.model;

public class Criteria {
	private String veldNaam;
	private String whereCheck;
	private String value;
	
	public Criteria(String veldNaam, String whereCheck, String value){
		assert(whereCheck.equals(">") || whereCheck.equals("<") || whereCheck.equals("="));
		this.whereCheck = whereCheck;
		this.veldNaam = veldNaam;
		this.value = value;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getWhereCheck() {
		return whereCheck;
	}

	public void setWhereCheck(String whereCheck) {
		this.whereCheck = whereCheck;
	}

	public String getVeldNaam() {
		return veldNaam;
	}

	public void setVeldNaam(String veldNaam) {
		this.veldNaam = veldNaam;
	}
	
	public String toString(){
		return veldNaam + whereCheck + value;
	}

}
